package com.rentong.wx.cust.controller;

import com.rentong.common.R;
import com.rentong.wx.cust.dto.CustFlowEntityDto;
import com.rentong.wx.cust.service.CustFlowService;
import com.rentong.wx.utils.WxApiUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author zhangle
 * @email 459343178@qq.com
 * @date 2024-12-24 14:42:33
 */
@RestController
public class CustFlowController {

    @Autowired
    private CustFlowService custFlowService;


    //102、收支明细
    @GetMapping("/custFlow/getFlow")
    public R getFlow(CustFlowEntityDto custFlowEntityDto, HttpServletRequest request) throws Exception {
        custFlowEntityDto.setCustId(WxApiUtil.getCurrentCustId(request));
        return R.success(custFlowService.getFlow(custFlowEntityDto));
    }



}
